//
//  AppDelegate+PushEx.h
//  MyNewProject
//
//  Created by 王春辉 on 2020/2/1.
//  Copyright © 2020年 sun. All rights reserved.
//

#import "AppDelegate.h"
#import "JPUSHService.h"
// iOS10 注册 APNs 所需头文件
#ifdef NSFoundationVersionNumber_iOS_9_x_Max
#import <UserNotifications/UserNotifications.h>
#endif

NS_ASSUME_NONNULL_BEGIN

@interface AppDelegate (PushEx)<JPUSHRegisterDelegate>

/**
 注册jpush

 @param launchOptions launchOptions description
 */
- (void)registJPushWithOptions:(NSDictionary *)launchOptions;

/**
 上报设备token

 @param deviceToken deviceToken description
 */
- (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;

/**
 注册失败

 @param error error
 */
- (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
@end

NS_ASSUME_NONNULL_END
